Adding some more judges, here and there.
[and.git] / UVa / 10450 - World cup noise / 10450.cpp
blobc4a597f4e464a403f79c5c8109f87caa99518bf5
1 #include <iostream>
3 using namespace std;
5 unsigned long long u[52], c[52];
7 int main(){
8 u[1] = 1;
9 c[1] = 1;
10 for (int i=2; i<=51; ++i){
11 u[i] = c[i-1];
12 c[i] = c[i-1] + u[i-1];
14 int casos;
15 cin >> casos;
16 int n;
17 for (int j=1; j<=casos; ++j){
18 cin >> n;
19 cout << "Scenario #" << j << ":" << endl;
20 cout << u[n] + c[n] << endl << endl;
22 return 0;